package com.yanchi.controller;


import com.yanchi.domain.BusinessException;
import com.yanchi.domain.CommonErrorCode;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Description
 *
 * @author panyanzheng
 * @date 2021/10/27 17:47
 */
@RestController
public class HelloController {

    @RequestMapping("/hello")
    public String hello() {

        if (1 == 1) {
            throw new BusinessException(CommonErrorCode.E_100000);
        }

        return "hello";
    }

}
